package com.chance.cc.crawler.prod.command.trigger.domain.news.baidu;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.baidu.yidianzixun.YiDianZiXunRealtimeCrawlerSchedulerJob;

import static com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger.metaServiceCommand_17;

public class BaiDuYiDianZiXunCrawlerScheduleTrigger {
    public static void main(String[] args) {
        publishBaiDuZhiShuRealtimeScheduleTriggerInfo();
    }

    public static void publishBaiDuZhiShuRealtimeScheduleTriggerInfo() {
        CrawlerJob crawlerJob = YiDianZiXunRealtimeCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                YiDianZiXunRealtimeCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                //"0 0 1 * * ?",
                "0 0 1 * * ?",
                "百度一点资讯追溯7日文章采集任务，每天采集一次"
        );
    }
}
